package solution

func V1(nums []int, target int) []int {
	rst := make([]int, 0)

	for i := 0; i < len(nums); i++ {
		for j := i + 1; j < len(nums); j++ {
			if nums[i]+nums[j] == target {
				rst = append(rst, i)
				rst = append(rst, j)
				break
			}
		}
	}

	return rst
}
